rwlock: allow arch to override read_unlock() atomic
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Jan 2015 16:31:05 +0000 (17:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Jan 2015 16:31:05 +0000 (17:31 +0100)
commit9f5584f5b6e67627d6d721ed7003469263fdeaa9
treeca62c46269c0f745a1fef5582c72df523f6e90a0
parent2e9869028ab80f13da79517d4572b5d6044ac228
rwlock: allow arch to override read_unlock() atomic

On x86, LOCK DEC is cheaper than LOCK CMPXCHG and doesn't require a
retry loop around it.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/spinlock.c
xen/include/asm-x86/spinlock.h